<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  <title>Load assemblies</title>
  <xml></xml>
  <link rel="stylesheet" type="text/css" href="MSDN.css">
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
          <tbody>
    <tr id="hdr">
            <td class="runninghead">
      <p align="left">CS-Script 3.27.0</p>
            </td>
            <td class="product">
            </td>
          </tr>
  </tbody>
</table>
      </div>
<div id="TitleRow">
<h1 class="dtH1" align="left">Load assemblies</h1>
      </div>
    </div>
<div id="nstext">
<p class="dtH4">/<b>r:&lt;assembly 1&gt;[:&lt;assembly N&gt;]&nbsp;</b>&nbsp; </p>
<p>Forces the script engine
to load assemblies referenced&nbsp; from a command-line explicitly. </p>
<div style="margin-left: 40px;" class="syntax"> cscs /r:classlib1.dll:classlib2.dll test </div>
<blockquote>
  <p>
The command above executes the test.cs script. It also instructs the
script engine to load assemblies classlib1.dll and classlib2.dll at start-up. </p>
</blockquote>
<h4 class="dtH4"><b>
Note</b> </h4>
<p>The referenced assemblies must reside in the same directory where
the script file is or to be in the one of the CS-Script library folders
(see <a href="Using_.NET_assemblies.html"> Using .NET assemblies</a>&nbsp;for details).<br>
<br>
 </p>
<h4 class="dtH4">See Also</h4>
<p>
        <a href="Command-line_Interface.html">Command-line interface</a> | <a href="Using_.NET_assemblies.html"> Using .NET assemblies</a></p>
<p>
        &nbsp;</p>
<p>
        &nbsp;</p>
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;">
	<param name="Keyword" value="Load assembly">
</object> 
    </div>
</body>
</html>

